home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / code / r3guimod.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  2.8 KB  |  100 lines

  1.  
  2. // JavaScript wrapper for r3guimod.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_GUIMODEL_H = 1;
  7. include("oops/r3model.js")
  8.  
  9.  
  10. var R3CLID_GUIMODEL = 1213;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Install GUI manager. Gui managers are instanced with    * gui model and plug-in functionality such
  16. //      as GUI saving    * loading.
  17. // Returns: Boolean, TRUE if succeeded
  18. // p1: Integer, widget class to be managed
  19. // p3: Integer, manager class for the widget.    
  20.  
  21. R3GUIMODELCM_INSTALLMANAGER = 1213000;
  22.  
  23. function mR3GUIMODELCM_INSTALLMANAGER(p1, p3) {
  24.   return   DoA2(this.r3obj, 1213000, p1, R3TID_INTEGER, 0, p3, R3TID_INTEGER, 0);
  25. }
  26.  
  27. // Description: Find manager for the given widget.
  28. // Virtual method
  29. // Returns: Object, manager, if found
  30. // p3: Integer, class id of the widget    
  31.  
  32. R3GUIMODELM_FINDMANAGER = 1213001;
  33.  
  34. function mR3GUIMODELM_FINDMANAGER(p3) {
  35.   return R3ToJS(  DoA(this.r3obj, 1213001, p3, R3TID_INTEGER, 0));
  36. }
  37.  
  38.  
  39.  
  40.  
  41. R3GUIMODELA_CurrentObject = 1213500;
  42. function SetR3GUIMODELA_CurrentObject(value) {
  43.   R3Set(this.r3obj, R3GUIMODELA_CurrentObject, value, R3TID_OBJECT, 0); 
  44. }
  45.  
  46. function GetR3GUIMODELA_CurrentObject() {
  47.   return R3ToJS(R3Get(this.r3obj, R3GUIMODELA_CurrentObject, R3TID_OBJECT, 0)); 
  48. }
  49.  
  50. R3GUIMODELA_CurrentGManager = 1213501;
  51. function SetR3GUIMODELA_CurrentGManager(value) {
  52.   R3Set(this.r3obj, R3GUIMODELA_CurrentGManager, value, R3TID_OBJECT, 0); 
  53. }
  54.  
  55. function GetR3GUIMODELA_CurrentGManager() {
  56.   return R3ToJS(R3Get(this.r3obj, R3GUIMODELA_CurrentGManager, R3TID_OBJECT, 0)); 
  57. }
  58.  
  59. R3GUIMODELA_RootObject = 1213502;
  60. function SetR3GUIMODELA_RootObject(value) {
  61.   R3Set(this.r3obj, R3GUIMODELA_RootObject, value, R3TID_OBJECT, 0); 
  62. }
  63.  
  64. function GetR3GUIMODELA_RootObject() {
  65.   return R3ToJS(R3Get(this.r3obj, R3GUIMODELA_RootObject, R3TID_OBJECT, 0)); 
  66. }
  67.  
  68. R3GUIMODELA_Edit = 1213503;
  69. function SetR3GUIMODELA_Edit(value) {
  70.   R3Set(this.r3obj, R3GUIMODELA_Edit, value, R3TID_BOOLEAN, 0); 
  71. }
  72.  
  73. function GetR3GUIMODELA_Edit() {
  74.   return R3Get(this.r3obj, R3GUIMODELA_Edit, R3TID_BOOLEAN, 0); 
  75. }
  76.  
  77.  
  78.  
  79. function r3Guimodel () { 
  80.    this.base = r3God;
  81.    if(arguments.length) {
  82.       this.base(R3CLID_GUIMODEL, arguments);
  83.    }
  84.    // Methods
  85.    this.INSTALLMANAGER=mR3GUIMODELCM_INSTALLMANAGER;
  86.    this.FINDMANAGER=mR3GUIMODELM_FINDMANAGER;
  87.  
  88.    // Attributes
  89.    this.GetCurrentObject=GetR3GUIMODELA_CurrentObject;
  90.    this.SetCurrentObject=SetR3GUIMODELA_CurrentObject;
  91.    this.GetCurrentGManager=GetR3GUIMODELA_CurrentGManager;
  92.    this.SetCurrentGManager=SetR3GUIMODELA_CurrentGManager;
  93.    this.GetRootObject=GetR3GUIMODELA_RootObject;
  94.    this.SetRootObject=SetR3GUIMODELA_RootObject;
  95.    this.GetEdit=GetR3GUIMODELA_Edit;
  96.    this.SetEdit=SetR3GUIMODELA_Edit;
  97. }
  98.  
  99. r3Guimodel.prototype=new r3Model;
  100. // r3guimod.h_H